<template>
  <div>
    <h1>后代的状态是{{ flag }}</h1>
    <button>切换状态</button>
  </div>
</template>
<script>
export default {
  inject: ["flag"],
  data() {
    return {};
  },
  methods: {},
};
</script>